package com.example.lotterysystem.mapper;

import com.example.lotterysystem.pojo.dataobject.ActivityUserDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ActivityUserMapper {

    int batchInsert(@Param("items") List<ActivityUserDO> activityUserDOList);

    List<ActivityUserDO> selectByActivityId(@Param("activityId") Long activityId);

    List<ActivityUserDO> batchSelectByAUIds(@Param("activityId") Long activityId,
                                            @Param("userIds") List<Long> userIds);

    void batchUpdateStatus(@Param("activityId") Long activityId,
                           @Param("userIds") List<Long> userIds,
                           @Param("status") String status);
}
